<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <title>写一个字~</title>
  <style>
    #canvas{
      display: block;
      margin: 0 auto;
    }
    #cantroller{
      width: 800px;
      margin: 10px auto;
    }
    #clear_btn{
      vertical-align: 15px;
    }
    .btn-blue,
    .btn-red{
      display: inline-block;
      width: 40px;
      height: 40px;
      background-color: dodgerblue;
    }
    .btn-red{
      background-color: orangered;
    }
  </style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="cantroller">
  <a href="javascript:" class="btn-blue J_btn"></a>
  <a href="javascript:" class="btn-red J_btn"></a>
  <button id="clear_btn" type="button">清 空</button>
</div>
<script src="handwriting.js"></script>
</body>
</html>